package com.ruibang.glass.purchase.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruibang.glass.purchase.dto.FileInfoDTO;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 销售评标报告
 * </p>
 *
 * @author mameng
 * @since 2024-03-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(description = "采购评标报告")
@TableName(value = "g_purchase_bid_evaluation_reports")
public class ProcureBidEvaluationReports extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "采购项目编号")
    private String projectNumber;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "审批项目Id")
    private String approveId;

    @ApiModelProperty(value = "采购方式")
    private String purchaseMethod;

    @ApiModelProperty(value = "审核状态 ")
    private String reviewStatus;

    @ApiModelProperty(value = "审核人")
    private String reviewer;

    @ApiModelProperty(value = "总中标全额")
    private BigDecimal totalBidAmount;

    @ApiModelProperty(value = "招标时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime biddingTime;

    @ApiModelProperty(value = "评标小组组长")
    private String evaluationTeamLeader;

    @ApiModelProperty(value = "申请时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime applicationTime;

    @TableField(exist = false)
    private List<ProcureReportBidders> procureReportBidders;

    @TableField(exist = false)
    private List<String> fileIdList;

    @TableField(exist = false)
    private List<String> removeFileIdList;

    @TableField(exist = false)
    private List<String> removeProductIdList;

    @TableField(exist = false)
    private List<FileInfoDTO> fileList;

    @ApiModelProperty(value = "状态")
    @TableField(exist = false)
    private String status;

    @ApiModelProperty(value = "流程Id")
    @TableField(exist = false)
    private String processId;

    @ApiModelProperty(value = "审批状态")
    @TableField(exist = false)
    private String approveStatus;

    @ApiModelProperty(value = "审批节点")
    @TableField(exist = false)
    private String nodeName;

    @ApiModelProperty(value = "审批人")
    @TableField(exist = false)
    private String approveUserName;

    @ApiModelProperty(value = "审批人Id")
    @TableField(exist = false)
    private String approveUserId;

    @ApiModelProperty(value = "菜单Id")
    @TableField(exist = false)
    private String menuId;

    @ApiModelProperty(value = "新增人员")
    private String createUserId;

    @ApiModelProperty(value = "新增人员Id")
    private String createUser;

    @ApiModelProperty(value = "备注")
    private String remark;
}
